package com.db.gffxo.epi.publish;

import javax.sql.DataSource;


public abstract class AbstractPublisher implements Publisher {
	
	DataSource dataSource = null;
	String formatList = ",";

	//getDataSource();
	public DataSource getDataSource() {
		return dataSource;
	}

	//setDataSource(rs.getDataSource(10));
	public void setDataSource(DataSource dataSource) {
		this.dataSource = dataSource;
	}

	public void configurePublisher() {
		
	}

	public void addFormat(String format) {
		setFormatList(getFormatList().concat(format+","));
	}
	
	public String getFormatList() {
		return formatList;
	}

	public void setFormatList(String formatList) {
		this.formatList = formatList;
	}

}
